package pl.prv.polanie.client.dto;

import com.google.gwt.user.client.rpc.IsSerializable;




/**
 * SemestersYearGroupsDTO entity. @author MyEclipse Persistence Tools
 */

public class SemestersYearGroupsDTO extends java.lang.Object implements IsSerializable {


    // Fields    

     private long id;
     private SemesterDTO semester;
     private YearGroupNameDTO yearGroupName;
     private Integer studentsNumber;


    // Constructors

    /** default constructor */
    public SemestersYearGroupsDTO() {
    }

    
    /** full constructor */
    public SemestersYearGroupsDTO(SemesterDTO semester, YearGroupNameDTO yearGroupName, Integer studentsNumber) {
        this.semester = semester;
        this.yearGroupName = yearGroupName;
        this.studentsNumber = studentsNumber;
    }

   
    // Property accessors




    public SemesterDTO getSemester() {
		return semester;
	}


	public YearGroupNameDTO getYearGroupName() {
		return yearGroupName;
	}


	public void setSemester(SemesterDTO semester) {
		this.semester = semester;
	}


	public void setYearGroupName(YearGroupNameDTO yearGroupName) {
		this.yearGroupName = yearGroupName;
	}


	public Integer getStudentsNumber() {
        return this.studentsNumber;
    }
    
    public void setStudentsNumber(Integer studentsNumber) {
        this.studentsNumber = studentsNumber;
    }
   

    public String toLabel() {
    	String result;
    	result = "" + yearGroupName.getName() + " [" + studentsNumber + "] " + semester.toLabel();
    	return result;
    }


	public long getId() {
		return id;
	}


	public void setId(long id) {
		this.id = id;
	}






}